﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using GUIEXAM13.Views;
using SimpleMvvmToolkit;

namespace GUIEXAM13
{
    public class ViewSwitcher: ViewModelBase<ViewSwitcher>
    {
        private UserControl _currentView;
        public UserControl CurrentView
        {
            get { return _currentView; }
            set
            {
                _currentView = value;
                NotifyPropertyChanged(m => m.CurrentView);
            }
        }

        public ViewSwitcher()
        {
            CurrentView = new BrowseEventsView();
        }

        public void SwitchToBrowseEventsView()
        {
            CurrentView = new BrowseEventsView();
        }

        public void SwitchToCreateEventsView()
        {
            CurrentView = new CreateEventView();
        }
    }
}
